<?php
//print_r($online_users);
if( count($all_users)>0 )
{
  foreach ($all_users as $row)
  {        
    echo "<tr id='user_row_{$row->id}' onclick='javascript: select_user({$row->id})' >\n";      
      echo "<td>{$row->id}</td>\n";    
      echo "<td><a href='javascript: view_user_activity({$row->id})' >{$row->username}</a></td>\n";
      echo "<td>{$row->email}</td>\n";
      echo "<td>".substr($row->registration_date,0,10)."</td>\n";
      echo "<td>{$row->ip_address}</td>\n";
      echo "<td><img src='".base_url()."img/icons/{$row->status}.png' title='".lang('status_'.$row->status)."' width='16px' /></td>\n";     
      echo "<td><img src='".base_url()."img/icons/{$row->gender}.png' title='".lang($row->gender)."' /></td>\n";
      echo "<td><img src='".base_url()."img/icons/{$row->look_for}.png' title='".lang($row->look_for)."' /></td>\n";
      echo "<td>{$row->birthdate} ({$row->age})</td>\n";
      echo "<td>".lang($row->state)."</td>\n";
      echo "<td>{$row->zip_code}</td>\n";  
      echo "<td>{$row->num_affiliate}</td>\n"; // Affiliate
      echo "<td>{$row->timestamp}</td>\n";  
    echo "</tr>\n\n";
  }
} 
else
{
  echo "<tr><td>".lang('no_users')."</td></tr>";
}
?>
